package com.lai.berry;

import android.app.Application;
import com.joanzapata.iconify.fonts.FontAwesomeModule;
import com.lai.berry.ec.database.DatabaseManager;
import com.lai.berry.ec.icon.FontEcModule;
import com.lai.berry_core.app.Berry;
import com.lai.berry_core.net.Interceptor.DebugInterceptor;

public class ExampleApp extends Application{
    @Override
    public void onCreate() {
        super.onCreate();
        Berry.init(this)
                .withApiHost("http://127.0.0.1/")
                .withIcon(new FontAwesomeModule())
                .withIcon(new FontEcModule())
                .widthInterceptor(new DebugInterceptor("index",R.raw.test))
                .configure();
        DatabaseManager.getInstance().init(this);
    }
}
